package com.pkutech.carcasher.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.widget.TextView;

import com.dd.processbutton.iml.ActionProcessButton;
import com.pkutech.carcasher.R;
import com.pkutech.carcasher.bean.BaseResponse;
import com.pkutech.carcasher.model.IllegalPark;
import com.pkutech.carcasher.model.SelectBookingOrder;
import com.pkutech.carcasher.network.SoapApi;
import com.pkutech.carcasher.utils.ToastUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action0;
import rx.schedulers.Schedulers;

/**
 * 黑名单详情
 * Created by cyy on 2016/6/28.
 */
public class BlackOrderDetailActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    Toolbar toolbar;

    IllegalPark illegalPark;
    @BindView(R.id.text1)
    TextView text1;
    @BindView(R.id.text2)
    TextView text2;
    @BindView(R.id.text3)
    TextView text3;
    @BindView(R.id.text4)
    TextView text4;
    @BindView(R.id.text5)
    TextView text5;
    @BindView(R.id.text6)
    TextView text6;
//    @BindView(R.id.text7)
//    TextView text7;
    @BindView(R.id.text8)
    TextView text8;
    @BindView(R.id.text9)
    TextView text9;
    @BindView(R.id.text10)
    TextView text10;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_black_order_detail);
        ButterKnife.bind(this);
        initToolbar(toolbar);

        illegalPark = (IllegalPark) getIntent().getSerializableExtra(IllegalParkedWarnActivity.BLACK_ORDER);

        text1.setText(TextUtils.isEmpty(illegalPark.getRoadid()) ? "" : illegalPark.getRoadid());
        text2.setText(TextUtils.isEmpty(illegalPark.getFormalordercode()) ? "" : illegalPark.getFormalordercode());
        text3.setText(TextUtils.isEmpty(illegalPark.getCarnum()) ? "" : illegalPark.getCarnum());

        text8.setText(TextUtils.isEmpty(illegalPark.getCarportcode()) ? "" : illegalPark.getCarportcode());
        text9.setText(TextUtils.isEmpty(illegalPark.getMemberaccount()) ? "" : illegalPark.getMemberaccount());
        text10.setText(TextUtils.isEmpty(illegalPark.getAmount()) ? "" : illegalPark.getAmount());


        text4.setText(TextUtils.isEmpty(illegalPark.getStarttime()) ? "" : illegalPark.getStarttime());
        text5.setText(TextUtils.isEmpty(illegalPark.getEndtime()) ? "" : illegalPark.getEndtime());
        text6.setText("黑名单");
//        text7.setText(TextUtils.isEmpty(illegalPark.getUsername()) ? "" : illegalPark.getUsername());
    }

}
